import {RequestUtil} from '@/utils'

export class CustomerHttp {
    static PREFIX = "/manager/work/customer"


    // ====== 职务管理接口 ============
    static getKindPage = (params: Record<string, any>) => RequestUtil.getAjax(`${this.PREFIX}/kind/pageList`, params)

    static addKind = (data: Record<string, any>) => RequestUtil.postAjax(`${this.PREFIX}/kind/add`, data)

    static updateKind = (id: string | number, data: Record<string, any>) => RequestUtil.putAjax(`${this.PREFIX}/kind/update/${id}`, data)

    static delKind = (data: any[]) => RequestUtil.delAjax(`${this.PREFIX}/kind/delete`, data)



    // ====== 职务管理接口 ============
    static getMainPage = (params: Record<string, any>) => RequestUtil.getAjax(`${this.PREFIX}/main/pageList`, params)

    static addMain = (data: Record<string, any>) => RequestUtil.postAjax(`${this.PREFIX}/main/add`, data)

    static addModificationMain = (data: Record<string, any>) => RequestUtil.postAjax(`${this.PREFIX}/main/addModification`, data)

    static updateMain = (id: string | number, data: Record<string, any>) => RequestUtil.putAjax(`${this.PREFIX}/main/update/${id}`, data)

    static delMain = (data: any[]) => RequestUtil.delAjax(`${this.PREFIX}/main/delete`, data)



}
